class BasicController {
    RequestSuccessMsg(res,data){
        let result ={
            code: 0,
            status: true,
            data: null,
            message: 'success'
        }
        if(data){
            result.data = data;
        }
        res.json(result);
    }
    isEmptyParamter(data){
        if(!data){
            return false;
        } else {
            return true;
        }
    }
}

module.exports = BasicController;